package com.lagou.domain;

/**
 * 文章评论类
 */
public class t_comment {
    private int id;//评论id
    private String content;//评论内容
    private String author;//评论作者
    //一个评论属于一个文章
    private t_article article;


    @Override
    public String toString() {
        return "t_comment{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", author='" + author + '\'' +
                ", article=" + article +
                '}';
    }

    public t_article getArticle() {
        return article;
    }

    public void setArticle(t_article article) {
        this.article = article;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }
}
